package com.example.superoa.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.superoa.common.Shijian;
import com.example.superoa.model.mappers.TscoreMapper;
import com.example.superoa.model.mappers.TtestMapper;

@Service
@Transactional(rollbackFor=Exception.class)
public class TscoreService {
		@Autowired
		private TscoreMapper scoremapper;
		@Autowired
		private TtestMapper testmapper;  
		//查询全部
		public JSONArray findAllsscore() {
			return scoremapper.findAllsscore();
		}
		//根据考试安排名称查询
		public JSONArray findByscorename(String Staff_name) {
			return scoremapper.findByscorename("%"+Staff_name+"%");
		}
}